#include <cstdio>

class Embedded {
  public:
    Embedded()
    {
      embi = 0;
    }  
  
    Embedded(const Embedded& other)
    {
      std::printf("Embedded copy constructor called");
    }
    
    int embi;
};

class Exception1 {
  public:
 
  int param;
  Embedded emb;

  Exception1(int i)
  {
    param = i;
  }
};

void f()
{
  throw Exception1(3);
}

int main()
{
  try {
    f();  
  } catch (Exception1 &e) {
    std::printf("%d\n", e.param);
  }
  return 0;
}
